package cn.stylefeng.guns.dao.entity;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 批发销售门店库存
 * </p>
 *
 * @author quspacedraon
 * @since 2024-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wholesale_sales_record_batch")
@ApiModel(value="WholesaleSalesRecordBatch对象", description="批发销售门店库存")
public class WholesaleSalesRecordBatch extends BusinessBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "wholesale_sales_record_batch_id", type = IdType.ASSIGN_ID)
    private String wholesaleSalesRecordBatchId;

    @ApiModelProperty(value = "门店code")
    private String storeCode;

    @ApiModelProperty(value = "总数量")
    private Integer totalNum;

    @ApiModelProperty(value = "发货id")
    private String deliverId;

    @ApiModelProperty(value = "已使用数量")
    private Integer usedNum;

    @ApiModelProperty(value = "批次号")
    private String batchNo;

    @ApiModelProperty(value = "销售结束时间")
    private Long endTime;

    @ApiModelProperty(value = "商品编码")
    private String proCode;

    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ChineseDescription("删除标记（Y-已删除，N-未删除）")
    @TableLogic(value = "N", delval = "Y")
    private String delFlag;
}
